@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: '打印模板'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define root view entity ZI_FORM_TEMPLATE
  as select from ztbc_form_temp
{
  key formtemplate      as Formtemplate,
      description       as Description,
      servicedifination as ServiceDifination,
      xsd_filename      as XsdFilename,
      @Semantics.mimeType: true
      xsd_mimetype      as XsdMimetype,
      @Semantics.largeObject:{mimeType: 'XsdMimetype',fileName: 'XsdFilename',contentDispositionPreference: #ATTACHMENT }
      xsd_attachment    as XsdAttachment,
      xdp_filename      as XdpFilename,
      @Semantics.mimeType: true
      xdp_mimetype      as XdpMimetype,
      @Semantics.largeObject:{mimeType: 'XdpMimetype',fileName: 'XdpFilename',contentDispositionPreference: #ATTACHMENT }
      xdp_attachment    as XdpAttachment,
      @Semantics.user.createdBy: true
      created_by        as CreatedBy,
      @Semantics.systemDateTime.createdAt: true
      created_at        as CreatedAt,
      @Semantics.user.lastChangedBy: true
      last_changed_by   as LastChangedBy,
      @Semantics.systemDateTime.localInstanceLastChangedAt: true
      last_changed_at   as LastChangedAt
}
